package com.gator.springboot.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: giant-gator
 * @description:
 * @author: 何章怀晓 PABLO
 * @create: 2022-10-07 17:30
 **/
@RequestMapping("/a")
@RestController
public class TestController {

    @RequestMapping("/b")
    @SentinelResource("myResource")
    public String m(@RequestParam("ip") String ip) {
        System.out.println("调用。。。");
        return ip + "调用";
    }
}
